package cn.cs.mapper;

import cn.cs.pojo.CsMenuRole;
import cn.cs.pojo.CsRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CsRoleMapper {

    public CsRole getCsRoleById(@Param(value = "id") Long id) throws Exception;

    public List<CsRole> getCsRoleListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsRoleCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertCsRole(CsRole csRole) throws Exception;

    public Integer updateCsRole(CsRole csRole) throws Exception;

    public Integer deleteCsRoleById(@Param(value = "id") String id) throws Exception;

    public Integer insertRoleMenusBatch(@Param(value = "list") List<CsMenuRole> list, @Param(value = "role_id") String role_id);

}
